import {createStore,applyMiddleware} from 'redux'
import createSageMiddleware from 'redux-saga'
import reducers from './reducers'
import sagas from './sagas'

const sagaMiddleware=createSageMiddleware()
const store=createStore(
    reducers,
    applyMiddleware(sagaMiddleware)
)

sagaMiddleware.run(sagas)

export default store;